# Author : wyq

import pickle


def testSayHi(name):
    print("say hi :", name)


info = {
    'name': 'alex',
    'age': 22,
    'func': testSayHi
}
f = open("test.text", "wb")

# f.write(pickle.dumps(info))
pickle.dump(info, f)
f.close()